
package Migue;

import java.util.Scanner;

public class MaxMin {
public static void main(String []args){
Scanner scan= new Scanner(System.in);
       System.out.print("A: ");
       int a=scan.nextInt();
       System.out.print("B: ");
       int b=scan.nextInt();
       System.out.print("C: ");
       int c=scan.nextInt();
       System.out.print("D: ");
       int d=scan.nextInt();


int r1=Math.max(Math.max(a, b), Math.max(c, d));
int r2=Math.min(Math.min(a, b), Math.min(c, d));
    System.out.println("Mayor: "+r1);
    System.out.println("Menor: "+r2);

}
}
